package com.ncloud.crm.service.impl;

import java.util.List;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ncloud.crm.entity.BsContractNode;
import com.ncloud.crm.mapper.BsContractNodeMapper;
import com.ncloud.crm.service.BsContractNodeService;

@Service
public class BsContractNodeServiceImpl implements BsContractNodeService {
	
	private static final Logger logger = LogManager.getLogger(BsContractNodeServiceImpl.class);
	@Autowired
	private BsContractNodeMapper mapper;
	
	@Override
	public int createContractNodeRel(BsContractNode contractNode) {
		return mapper.createContractNodeRel(contractNode);
	}

	@Override
	public List<BsContractNode> getNodesByContract(Long contractInstId) {
		return mapper.getNodesByContract(contractInstId);
	}
	
}
